package com.fengwk.support.spring.boot.config;

import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import com.fengwk.support.interceptor.RequestParseInterceptor;

public abstract class AbstractInterceptorsConfig extends WebMvcConfigurerAdapter {

	@Override
    public void addInterceptors(InterceptorRegistry registry) {
		// 请求解析拦截器
    	registry.addInterceptor(new RequestParseInterceptor()).addPathPatterns("/**");
    }
	
}
